<template>
  <section class="container">
    <div id="wrapper">
      <div class="header">
        <div class="header_logo">
          <a href="/">我的藏书阁</a>
        </div>
      </div>
      <AppLogo></AppLogo>
      <div id="main">
        <div class="novelslist" >
          <div v-for="(item,index) in allMsg" :key="index"  class="content">
            <h2>{{msgNum[index]}}</h2>
            <div  v-for="(im,i) in item.slice(0, 1)" :key="i.name" class="top">
              <div class="image">
								<nuxt-link tag="a" :to="{name:'cover',query:{book_chapter_id:im.bookChapterId,book_id:im.bookId,book_source_id:im.bookSourceId}}">
									<img
											:src="im.imgUrl"
											:alt="im.name"
											width="67"
											height="82"
										>
								</nuxt-link>
              </div>
              <dl>
                <dt>
										<nuxt-link tag="a" :to="{name:'cover',query:{book_chapter_id:im.bookChapterId,book_id:im.bookId,book_source_id:im.bookSourceId}}">
											{{im.name}}
										</nuxt-link>
                </dt>
                <dd>{{im.desc}}</dd>
              </dl>
              <div class="clear"></div>
            </div>
            <ul>
              <li  v-for="(ms,b) in item.slice(1, 13)" :key="b.name" >
								<nuxt-link tag="a" :to="{name:'cover',query:{book_chapter_id:ms.bookChapterId,book_id:ms.bookId,book_source_id:ms.bookSourceId}}">
									{{ms.name}}
								</nuxt-link>/{{ms.author}}
              </li>
            </ul>
          </div>
          <div class="clear"></div>
        </div>
        <div id="newscontent">
          <div class="l">
            <h2>最近更新小说列表</h2>
            <ul>
              <li>
                <span class="s1">[女频频道]</span>
                <span class="s2">
                  <a href="/85_85985/" target="_blank">神医嫡女：帝君，请下嫁！</a>
                </span>
                <span class="s3">
                  <a href="/85_85985/376719.html" target="_blank">第158章 偿命（五更）</a>
                </span>
                <span class="s4">战西野</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[都市言情]</span>
                <span class="s2">
                  <a href="/86_86140/" target="_blank">重生之激荡年华</a>
                </span>
                <span class="s3">
                  <a href="/86_86140/46307.html" target="_blank">第75章 他是老板，他付钱</a>
                </span>
                <span class="s4">皇家雇佣猫</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[科幻灵异]</span>
                <span class="s2">
                  <a href="/80_80933/" target="_blank">从超神学院开始的穿越日常</a>
                </span>
                <span class="s3">
                  <a href="/80_80933/991980.html" target="_blank">第一千零七十三章 平行地球来人</a>
                </span>
                <span class="s4">我步入地狱</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[网游竞技]</span>
                <span class="s2">
                  <a href="/86_86450/" target="_blank">恶魔法典</a>
                </span>
                <span class="s3">
                  <a href="/86_86450/46306.html" target="_blank">必看，推荐票加更！</a>
                </span>
                <span class="s4">梦幻天心</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[玄幻奇幻]</span>
                <span class="s2">
                  <a href="/80_80199/" target="_blank">超维入侵</a>
                </span>
                <span class="s3">
                  <a href="/80_80199/991979.html" target="_blank">第671章 诡异世界(第一更)</a>
                </span>
                <span class="s4">一念乱天机</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[玄幻奇幻]</span>
                <span class="s2">
                  <a href="/85_85867/" target="_blank">最强反派女帝</a>
                </span>
                <span class="s3">
                  <a href="/85_85867/376718.html" target="_blank">第47章 突然袭击</a>
                </span>
                <span class="s4">汉武弟</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[玄幻奇幻]</span>
                <span class="s2">
                  <a href="/86_86183/" target="_blank">我在异界是个神</a>
                </span>
                <span class="s3">
                  <a href="/86_86183/46305.html" target="_blank">第69章 神剑御雷真诀</a>
                </span>
                <span class="s4">上江君</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[玄幻奇幻]</span>
                <span class="s2">
                  <a href="/77_77269/" target="_blank">剑破九天</a>
                </span>
                <span class="s3">
                  <a href="/77_77269/1280408.html" target="_blank">第2826章 投降了</a>
                </span>
                <span class="s4">何无恨</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[都市言情]</span>
                <span class="s2">
                  <a href="/86_86404/" target="_blank">都市最强整蛊师</a>
                </span>
                <span class="s3">
                  <a href="/86_86404/46304.html" target="_blank">第110章 只有一个异能核心</a>
                </span>
                <span class="s4">多宝大如来</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[历史军事]</span>
                <span class="s2">
                  <a href="/86_86655/" target="_blank">茅山妖王</a>
                </span>
                <span class="s3">
                  <a href="/86_86655/46303.html" target="_blank">第34章 碰瓷</a>
                </span>
                <span class="s4">念响</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[都市言情]</span>
                <span class="s2">
                  <a href="/86_86688/" target="_blank">没有谁，比我更有钱</a>
                </span>
                <span class="s3">
                  <a href="/86_86688/46302.html" target="_blank">第121章 我有钞能力（求收藏求推荐）</a>
                </span>
                <span class="s4">杯酒释兵权</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[女频频道]</span>
                <span class="s2">
                  <a href="/83_83518/" target="_blank">田园纨绔妻</a>
                </span>
                <span class="s3">
                  <a href="/83_83518/668161.html" target="_blank">556 拿什么娶？（2更）</a>
                </span>
                <span class="s4">晗路</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[女频频道]</span>
                <span class="s2">
                  <a href="/84_84262/" target="_blank">名门暖婚：权爷盛宠妻</a>
                </span>
                <span class="s3">
                  <a href="/84_84262/376717.html" target="_blank">462 求婚：他们不要，我娶你</a>
                </span>
                <span class="s4">月初姣姣</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[女频频道]</span>
                <span class="s2">
                  <a href="/84_84265/" target="_blank">过门</a>
                </span>
                <span class="s3">
                  <a href="/84_84265/376716.html" target="_blank">336 诸事不宜呀</a>
                </span>
                <span class="s4">简思</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[女频频道]</span>
                <span class="s2">
                  <a href="/85_85275/" target="_blank">最强医妃：暴君，不服来战</a>
                </span>
                <span class="s3">
                  <a href="/85_85275/376715.html" target="_blank">211计中计</a>
                </span>
                <span class="s4">温暖的月光</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[历史军事]</span>
                <span class="s2">
                  <a href="/86_86643/" target="_blank">唐枭</a>
                </span>
                <span class="s3">
                  <a href="/86_86643/46300.html" target="_blank">第十五章 分钱识人心！</a>
                </span>
                <span class="s4">寂寞读南华</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[都市言情]</span>
                <span class="s2">
                  <a href="/86_86725/" target="_blank">夸夸群神操作降临</a>
                </span>
                <span class="s3">
                  <a href="/86_86725/46299.html" target="_blank">第九章 九层塔小龙虾！</a>
                </span>
                <span class="s4">犀共鸣</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[都市言情]</span>
                <span class="s2">
                  <a href="/83_83164/" target="_blank">我真的不是富二代</a>
                </span>
                <span class="s3">
                  <a href="/83_83164/668160.html" target="_blank">推荐一本书</a>
                </span>
                <span class="s4">幻羽呀</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[女频频道]</span>
                <span class="s2">
                  <a href="/86_86609/" target="_blank">竹马谋妻：弃女嫡妃宠入怀</a>
                </span>
                <span class="s3">
                  <a href="/86_86609/46298.html" target="_blank">第28章 严格的师父</a>
                </span>
                <span class="s4">简音习</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[女频频道]</span>
                <span class="s2">
                  <a href="/86_86603/" target="_blank">妙笔田园小福后</a>
                </span>
                <span class="s3">
                  <a href="/86_86603/46297.html" target="_blank">【027】小像又丢了一个</a>
                </span>
                <span class="s4">魅夜水草</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[都市言情]</span>
                <span class="s2">
                  <a href="/78_78235/" target="_blank">都市圣医</a>
                </span>
                <span class="s3">
                  <a href="/78_78235/1117904.html" target="_blank">第2541章 交易</a>
                </span>
                <span class="s4">番茄</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[都市言情]</span>
                <span class="s2">
                  <a href="/25_25754/" target="_blank">超级学神</a>
                </span>
                <span class="s3">
                  <a href="/25_25754/1798263.html" target="_blank">第二千七百一十八章 天香果的功效！</a>
                </span>
                <span class="s4">鬼谷仙师</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[玄幻奇幻]</span>
                <span class="s2">
                  <a href="/86_86329/" target="_blank">海贼之枪械至尊</a>
                </span>
                <span class="s3">
                  <a href="/86_86329/46296.html" target="_blank">第24章 老萨科的礼物，贵族年终宴会！</a>
                </span>
                <span class="s4">焉得羽翼兮</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[科幻灵异]</span>
                <span class="s2">
                  <a href="/77_77855/" target="_blank">碧溪传人之邪体</a>
                </span>
                <span class="s3">
                  <a href="/77_77855/1280407.html" target="_blank">第1292章 血将军的传人？</a>
                </span>
                <span class="s4">背棺道抬棺僧</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[都市言情]</span>
                <span class="s2">
                  <a href="/82_82374/" target="_blank">逆转重生1990</a>
                </span>
                <span class="s3">
                  <a href="/82_82374/668159.html" target="_blank">507【要挟】</a>
                </span>
                <span class="s4">镔铁</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[历史军事]</span>
                <span class="s2">
                  <a href="/80_80962/" target="_blank">谋明天下</a>
                </span>
                <span class="s3">
                  <a href="/80_80962/991978.html" target="_blank">第五百一十八章 悔悟太迟（2）</a>
                </span>
                <span class="s4">风中的失落</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[网游竞技]</span>
                <span class="s2">
                  <a href="/86_86283/" target="_blank">我有一座末日城</a>
                </span>
                <span class="s3">
                  <a href="/86_86283/46295.html" target="_blank">第四十六章 丧尸统领</a>
                </span>
                <span class="s4">头发掉了</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[玄幻奇幻]</span>
                <span class="s2">
                  <a href="/86_86470/" target="_blank">葬甲天下</a>
                </span>
                <span class="s3">
                  <a href="/86_86470/46294.html" target="_blank">第三十五章：惊变！</a>
                </span>
                <span class="s4">零下5度01</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[历史军事]</span>
                <span class="s2">
                  <a href="/86_86471/" target="_blank">东汉末年枭雄志</a>
                </span>
                <span class="s3">
                  <a href="/86_86471/46293.html" target="_blank">二十四 难怪孟德看得起你</a>
                </span>
                <span class="s4">御炎</span>
                <span class="s5">03-18</span>
              </li>
              <li>
                <span class="s1">[女频频道]</span>
                <span class="s2">
                  <a href="/84_84471/" target="_blank">女配修仙回来了</a>
                </span>
                <span class="s3">
                  <a href="/84_84471/376714.html" target="_blank">第一百三十九章 浮世沉渣</a>
                </span>
                <span class="s4">萦索</span>
                <span class="s5">03-18</span>
              </li>
            </ul>
          </div>
          <div class="r">
            <h2>最新入库小说</h2>
            <ul>
              <li>
                <span class="s1">[玄幻]</span>
                <span class="s2">
                  <a href="/86_86755/">从海贼开始的噬魔</a>
                </span>
                <span class="s5">03-17</span>
              </li>
              <li>
                <span class="s1">[都市]</span>
                <span class="s2">
                  <a href="/86_86754/">我真不当小白脸</a>
                </span>
                <span class="s5">03-17</span>
              </li>
              <li>
                <span class="s1">[科幻]</span>
                <span class="s2">
                  <a href="/86_86753/">我的星辰大海从黑科技开始</a>
                </span>
                <span class="s5">03-17</span>
              </li>
              <li>
                <span class="s1">[科幻]</span>
                <span class="s2">
                  <a href="/86_86752/">直到星空尽头</a>
                </span>
                <span class="s5">03-17</span>
              </li>
              <li>
                <span class="s1">[科幻]</span>
                <span class="s2">
                  <a href="/86_86751/">快穿：女王殿下，请吻安</a>
                </span>
                <span class="s5">03-17</span>
              </li>
              <li>
                <span class="s1">[历史]</span>
                <span class="s2">
                  <a href="/86_86750/">警官，我是直男</a>
                </span>
                <span class="s5">03-17</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86749/">重生七零：小媳妇，超凶的！</a>
                </span>
                <span class="s5">03-17</span>
              </li>
              <li>
                <span class="s1">[科幻]</span>
                <span class="s2">
                  <a href="/86_86748/">快穿守则：黑化男神，狠狠撩</a>
                </span>
                <span class="s5">03-17</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86747/">财阀和尚，宠宠欲动！</a>
                </span>
                <span class="s5">03-17</span>
              </li>
              <li>
                <span class="s1">[历史]</span>
                <span class="s2">
                  <a href="/86_86746/">前男友翻身记</a>
                </span>
                <span class="s5">03-17</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86745/">妖夏</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86744/">重生六零幸福攻略</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86743/">重生之女配的美满人生</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86742/">女主是个狠角色</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86741/">穿越全能网红</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86740/">大漠红云：绝世女刀客</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86739/">凰妃凶猛</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86738/">大清贵人</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86737/">男神宠婚日常</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86736/">你在万丈荣光中</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86735/">伯府庶出</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86734/">九零香妻已上线</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86733/">本王命不久矣</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[科幻]</span>
                <span class="s2">
                  <a href="/86_86732/">快穿虐渣攻略：男神，强势宠</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86731/">凤云归</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86730/">父皇必须死</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86729/">权门贵嫁</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[女生]</span>
                <span class="s2">
                  <a href="/86_86728/">亲爱的，只为遇见你</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[玄幻]</span>
                <span class="s2">
                  <a href="/86_86727/">混在超神学院的宇宙</a>
                </span>
                <span class="s5">03-16</span>
              </li>
              <li>
                <span class="s1">[都市]</span>
                <span class="s2">
                  <a href="/86_86726/">被异世界文化入侵啦</a>
                </span>
                <span class="s5">03-16</span>
              </li>
            </ul>
          </div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <div id="firendlink">
      友情连接：
      <a href="https://wap.xbiquge6.com/" target="_blank">我的藏书阁</a>
      <a href="https://www.xbiquge6.com/78_78513/" target="_blank">元尊</a>
      <a href="https://www.xbiquge6.com/9_9208/" target="_blank">伏天氏</a>
      <a href="https://wap.xbiquge6.com/60_60978/" target="_blank">一号红人</a>
      <a href="https://www.xbiquge6.com/9_9933/" target="_blank">逆天邪神</a>
      <a href="https://www.xbiquge6.com/20_20331/" target="_blank">万古神帝</a>
      <a href="https://www.xbiquge6.com/0_347/" target="_blank">武炼巅峰</a>
      <a href="https://www.xbiquge6.com/8_8109/" target="_blank">帝霸</a>
      <a href="https://www.xbiquge6.com/0_547/" target="_blank">我的贴身校花</a>
      <a href="https://www.xbiquge6.com/4_4093/" target="_blank">超品相师</a>
      <a href="https://www.xbiquge6.com/34_34822/" target="_blank">三寸人间</a>
      <a href="https://www.xbiquge6.com/0_576/" target="_blank">无敌天下</a>
      <a href="https://www.xbiquge6.com/77_77263/" target="_blank">我是至尊</a>
      <a href="https://www.xbiquge6.com/0_151/" target="_blank">混沌剑神</a>
      <a href="https://www.xbiquge6.com/33_33840/" target="_blank">超品巫师</a>
      <a href="https://www.xbiquge6.com/13_13134/" target="_blank">最强狂兵</a>
      <a href="https://www.xbiquge6.com/81_81117/" target="_blank">重生之都市仙尊</a>
      <a href="https://www.xbiquge6.com/77_77452/" target="_blank">一世兵王</a>
      <a href="https://www.xbiquge6.com/6_6373/" target="_blank">造化之王</a>
      <a href="https://www.xbiquge6.com/24_24699/" target="_blank">总裁爹地超给力</a>
      <a href="https://www.xbiquge6.com/76_76032/" target="_blank">最强医圣</a>
      <a href="https://www.xbiquge6.com/27_27058/" target="_blank">永恒圣帝</a>
      <a href="https://www.xbiquge6.com/26_26189/" target="_blank">大劫主</a>
      <a href="https://www.xbiquge6.com/2_2927/" target="_blank">天行</a>
      <a href="https://www.xbiquge6.com/27_27058/" target="_blank">永恒圣帝</a>
      <a href="https://www.xbiquge6.com/30_30535/" target="_blank">天下第九</a>
    </div>
    <div class="footer">
      <div class="footer_link">
        <p>
          <a href="/">自动访问我的藏书阁</a>
          <span>|</span>我的藏书阁每天最快更新！
          <span>|</span>
        </p>
      </div>
      <div class="footer_cont">
        <p>本站所有小说为转载作品，所有章节均由网友上传，转载至本站只是为了宣传本书让更多读者欣赏。</p>
        <p>Copyright © 2019 我的藏书阁 All Rights Reserved.</p>
      </div>
    </div>
		
  </section>
</template>

<script>
import AppLogo from "~/components/AppLogo.vue";
import axios from "axios";

export default {
  components: {
    AppLogo
  },
  data() {
    return {
      searchText: "",
      msgNum: ["玄幻", "武侠", "都市", "军事", "历史","灵异"],
      sizeCover: "",
      allMsg: []
    };
  },
  created() {
    // http://119.254.159.103:8888/mock/32/allParamSearch
    // 全部搜索
     this.getALLList();
  },
  methods: {
    // this.$router.push({ path:’/user’})
    getALLList(){
       let reqList = [];
        let resultList = []
        for (let i = 0; i < this.msgNum.length; i++) {
          let req = axios.get('https://uniontest.bookapi.cn/SEARCH/search/allParamSearch',{
            params: {
                packageName: "cc.quanbennovel",
                genre: this.msgNum[i],
                pageNum: 1,
                pageSize: 10
              }
          })
          reqList.push(req)
          resultList.push(('post' + (i + 1)).replace(/[']+/g, ''))
        }
        let that = this;
        axios.all(reqList).then(axios.spread(function(...resultList){
          resultList.map((val,i,arr)=>{
            that.allMsg.push(val.data.data)
          })
        }))
    },
    search() {
      this.$router.push({
        path: "/search",
        query: { searchText: this.searchText }
      });
    },
    aaa(msg) {
      // cartoon
      axios
        .get("https://uniontest.bookapi.cn/SEARCH/search/allParamSearch", {
          params: {
            packageName: "cc.quanbennovel",
            genre: msg,
            pageNum: 1,
            pageSize: 13
          }
        })
        .then(response => {
          // console.log(msg);
          this.allMsg.push(response.data.data);
        })
        .catch(error => {
          console.log("请求失败");
        });
    }
  }
};
</script>

<style scoped>
</style>

